package lab.bmp;

import java.rmi.RemoteException;
import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.FinderException;

/**
 *
 * @author Smike
 */
public interface NamedRecordHome<T extends NamedRecord, V extends AbstractPK<Integer>> {

    public T create(Integer id, String name) throws CreateException, RemoteException;
    public T findByPrimaryKey(V key) throws FinderException, RemoteException;
    public Collection findAll() throws FinderException, RemoteException;
    
}
